The Dreamweaver JavaScript API > File manipulation functions > dom.setLinkHref()

 

dom.setLinkHref()

Availability

Dreamweaver 3.0

Description

Makes the selection a hyperlink or changes the value of the link that surrounds the current selection.

Arguments

linkHREF

linkHREF is the URL (document-relative path, root-relative path, or absolute URL) to link to. If the argument is omitted, the Select HTML File dialog box appears.

Returns

Nothing.

Enabler

dom.canSetLinkHref()